<?php
/**
 * @author: 吴昊天<442384644@qq.com>
 * @day: 2020/7/8
 */
declare (strict_types=1);

namespace app\dao\order;

use app\dao\BaseDao;
use app\model\order\TurntableLog;

/**
 *
 * Class StoreCartDao
 * @package app\dao\order
 */
class TurntableLogDao extends BaseDao
{

    /**
     * 设置模型
     * @return string
     */
    protected function setModel(): string
    {
        return TurntableLog::class;
    }

    public function getList($where, $page, $limit)
    {
        return $this->getModel()->where($where)->page($page, $limit)->order('id DESC')->select()->toArray();
    }

    public function getListCount($where)
    {
        return $this->getModel()->where($where)->count();
    }

}
